//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-03B
TN_Widget.CreateTable([['Asking Alexandria','Revolution Concert House and Event Center','Garden City, ID','Saturday','5/11/2024','6:30 PM','6205401','Asking-Alexandria-5-11-2024'],['Maren Morris','Revolution Concert House and Event Center','Garden City, ID','Wednesday','6/5/2024','8:00 PM','6333846','Maren-Morris-6-5-2024'],['Jacquees','Revolution Concert House and Event Center','Garden City, ID','Friday','6/21/2024','8:00 PM','6398817','Jacquees-6-21-2024'],['C-Kan','Revolution Concert House and Event Center','Garden City, ID','Saturday','6/29/2024','8:00 PM','6412633','C-Kan-6-29-2024'],['The Gaslight Anthem','Revolution Concert House and Event Center','Garden City, ID','Sunday','7/28/2024','8:00 PM','6327800','The-Gaslight-Anthem-7-28-2024'],['The Dead South','Revolution Concert House and Event Center','Garden City, ID','Friday','8/9/2024','8:00 PM','6215490','The-Dead-South-8-9-2024'],['In This Moment','Revolution Concert House and Event Center','Garden City, ID','Sunday','9/1/2024','7:00 PM','6383979','In-This-Moment-9-1-2024'],['Sum 41 & The Interrupters','Revolution Concert House and Event Center','Garden City, ID','Sunday','9/8/2024','7:00 PM','6215176','Sum-41---The-Interrupters-9-8-2024'],['Mother Mother','Revolution Concert House and Event Center','Garden City, ID','Friday','9/13/2024','8:00 PM','6396613','Mother-Mother-9-13-2024'],['Goth Babe','Revolution Concert House and Event Center','Garden City, ID','Monday','10/7/2024','8:00 PM','6236547','Goth-Babe-10-7-2024'],['Porter Robinson','Revolution Concert House and Event Center','Garden City, ID','Tuesday','10/29/2024','8:00 PM','6406770','Porter-Robinson-10-29-2024']],'Revolution Concert House','http://www.ticketnetwork.com/ticket/Revolution-Concert-House-events.aspx');